<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Welcome extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('pickup_model');
        $this->load->model('location_model');
        $this->load->model('management_model');
        $this->load->model('listing_model');
        $this->load->model('requirement_model');
    }

    public function index() {

        $this->template->set_metadata('keywords', 'some keywords somebody for to comma-separate');
        $this->template->set_metadata('description', 'some description');

        //--Breadcrumb--//
        $this->template->set_breadcrumb('Blog', 'blog/index')
                ->set_breadcrumb('$article->category->title', 'blog/category/')
                ->set_breadcrumb('$article->title', 'blog/article/');


        $this->template->title('Welcome', 'carz.com')
                ->set_partial('header', 'header/header')
                ->set_partial('dealer', 'dealer/dealer')
                ->set_partial('recent', 'recent/post')
                ->set_partial('find_old', 'boxes/find_old')
                ->set_partial('featured', 'boxes/featured')
                ->set_partial('customer_care', 'sidebar/customer_care')
                ->set_partial('social_share', 'sidebar/social_share')
                ->set_partial('search_reviews', 'sidebar/search_reviews')
                ->set_partial('recent_news', 'sidebar/recent_news')
                ->set_partial('recent_reviews', 'sidebar/recent_reviews')
                ->set_partial('footer', 'footer/footer')
                ->build('pages/index');
    }

}

/* End of file welcome.php */
